<?php

class Base_Controller extends Controller {

    /**
     * Thực hiện filter Csrf token trên mọi POST request
     */
    public function __construct()
    {
        parent::__construct();

        $this->filter('before', 'csrf')->on('POST');
    }

	/**
	 * Catch-all method for requests that can't be matched.
	 *
	 * @param  string    $method
	 * @param  array     $parameters
	 * @return Response
	 */
	public function __call($method, $parameters)
	{
		return Response::error('404');
	}

}